﻿@model OrganizationStructureTree.Areas.Default.Models.ViewModels.RegisterViewModel

@{
    ViewBag.Title = "Регистрация";
    Layout = "~/Areas/Default/Views/Shared/_Layout.cshtml";
}


<div class="well">
    @using (Html.BeginForm("Register", "Account", FormMethod.Post, new { enctype = "multipart/form-data", @class = "form-horizontal" }))
    {
        @Html.AntiForgeryToken() 
        @Html.ValidationSummary(true)
        
        <div class="row-fluid">
            <div class="span12">
                <div class="span2">
                    <div class="fileupload fileupload-new" data-provides="fileupload">
                        <div class="fileupload-new thumbnail" style="width: 200px; height: 150px;">
                            <img src="http://www.placehold.it/200x150/EFEFEF/AAAAAA&text=no+image" />
                        </div>
                        <div class="fileupload-preview fileupload-exists thumbnail" style="max-width: 200px; max-height: 150px; line-height: 20px;"></div>
                        <div>
                            <span class="btn btn-file"><span class="fileupload-new">Select image</span><span class="fileupload-exists">Change</span><input type="file" /></span>
                            <a href="#" class="btn fileupload-exists" data-dismiss="fileupload">Remove</a>
                        </div>
                    </div>
                </div>
                <div class="span10">
                    <div class="row-fluid">
                        <div class="span6">

                            @Html.LabelFor(model => model.Email)

                            @Html.EditorFor(model => model.Email)
                            @Html.ValidationMessageFor(model => model.Email)

                            @Html.LabelFor(model => model.FirstName)

                            @Html.EditorFor(model => model.FirstName)
                            @Html.ValidationMessageFor(model => model.FirstName)

                            @Html.LabelFor(model => model.LastName)

                            @Html.EditorFor(model => model.LastName)
                            @Html.ValidationMessageFor(model => model.LastName)
                            @Html.LabelFor(model => model.MiddleName)
                            @Html.EditorFor(model => model.MiddleName)
                            @Html.ValidationMessageFor(model => model.MiddleName)


                            @Html.LabelFor(model => model.Password)
                            @Html.EditorFor(model => model.Password)
                            @Html.ValidationMessageFor(model => model.Password)
                            @Html.LabelFor(model => model.ConfirmPassword)
                            @Html.EditorFor(model => model.ConfirmPassword)
                            @Html.ValidationMessageFor(model => model.ConfirmPassword)
                        </div>
                        <div class="span6">
                            @Html.LabelFor(model => model.Company)
                            @Html.EditorFor(model => model.Company)
                            @Html.ValidationMessageFor(model => model.Company)

                            @Html.LabelFor(model => model.Department)
                            @Html.EditorFor(model => model.Department)
                            @Html.ValidationMessageFor(model => model.Department)
                            @Html.LabelFor(model => model.Project)
                            @Html.EditorFor(model => model.Project)
                            @Html.ValidationMessageFor(model => model.Project)
                            @Html.LabelFor(model => model.Position)
                            @Html.EditorFor(model => model.Position)
                            @Html.ValidationMessageFor(model => model.Position)
                            @Html.LabelFor(model => model.Manager)
                            @Html.EditorFor(model => model.Manager)
                            @Html.ValidationMessageFor(model => model.Manager)

                            @Html.LabelFor(model => model.Phone)
                            @Html.EditorFor(model => model.Phone)
                            @Html.ValidationMessageFor(model => model.Phone)
                            <div class="control-group">
                                <button class="btn btn-primary">Register</button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    }
</div>
    <script type="text/javascript"> $(function() {
  
     $('.fileupload').fileupload({ name: 'ImageFile', uploadtype: 'image' });
 });</script>


@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
